package com.tianyi.application.mapper;

import com.tianyi.application.dto.MyUserDto;
import com.tianyi.domain.entity.MyUserEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author tianyi
 * @Description // todo
 * @Date 2022 - 10 - 27
 **/

@Mapper
public interface MyUserDtoMapper {
    MyUserDtoMapper INSTANCE = Mappers.getMapper(MyUserDtoMapper.class);

    MyUserEntity myUserDto2Engity(MyUserDto myUserDto);

    MyUserDto myUserEntity2Dto(MyUserEntity myUserEntity);

    List<MyUserDto> myUserEntitys2Dto(List<MyUserEntity> myUserEntitys);

    List<MyUserEntity> myUserDtosEntity(List<MyUserDto> myUserEntitys);
}
